package com.leilei.service.impl;

import com.leilei.dao.IShopCartDao;
import com.leilei.dao.impl.ShopCartDaoImpl;
import com.leilei.entity.ShoppingCart;
import com.leilei.entity.ShoppingCustom;
import com.leilei.service.IShopCartService;

import java.util.Map;

public class ShopCartServiceImpl implements IShopCartService {

    private IShopCartDao shopCartDao = new ShopCartDaoImpl();

    @Override
    public boolean saveShopCart(Map<ShoppingCustom, ShoppingCart> shopCartMap) {

        return shopCartDao.saveShopCart(shopCartMap) > 0;
    }

}
